package com.xgp.mywordapp.service.impl;

import com.xgp.mywordapp.mapper.ErrorwordsMapper;
import com.xgp.mywordapp.model.Errorwords;
import com.xgp.mywordapp.model.ErrorwordsExample;
import com.xgp.mywordapp.service.ErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class ErrorServiceImpl implements ErrorService {

    @Autowired
    private ErrorwordsMapper errorwordsMapper;

    /**
     * 插入错题记录
     */
    @Override
    public int addErrorWord(Errorwords errorword) {
        //1，先判断是否有该错题
        return 0;
    }

    @Override
    public int addErrorCount(Errorwords errorword) {
        return 0;
    }

    @Override
    public int subErrorCount(Errorwords errorwords) {
        return 0;
    }
}
